package com.lanqiao;

import java.io.*;

public class Test {
    public static void main(String[] args) throws IOException {
        red();
    }
    public static void red() throws IOException {
        File file =new File("E:\\QQ下载的文件\\txt文件\\20200220笔记.txt") ;
        Reader rea = new FileReader(file);
        FileWriter fileWriter = new FileWriter("./hh/haha.txt");
        char[] chars = new char[(int) file.length()];
        rea.read(chars);
        fileWriter.write(new String(chars));
        rea.close();
        fileWriter.close();
    }

}
